package com.farm.path;

public class PathFinder {
    private PathStrategy strategy;

    public PathFinder(PathStrategy strategy) {
        this.strategy = strategy;
    }

    public void setStrategy(PathStrategy strategy) {
        this.strategy = strategy;
    }

    public String findPath(String start, String end) {
        return strategy.calculatePath(start, end);
    }
}
